import requests

if __name__ == '__main__':
    base_url = "https://www.baidu.com/s"

    keyword = {
        "wd": "陕西交通职业技术学院"
    }

    headers = {
        "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.16 Safari/537.36",
        
    }

    resp = requests.get(url=base_url, params=keyword, headers=headers)
    resp.encoding = "utf-8"
    print(resp.text)